new Vue({
    el: '#app',
    data() {
        return {
            shop: false,
            form: {
                Open_ID: "",
                page: 1,			//页数
                limit: 10			//每页数据条数
            },
            total: 0,//总条数
            options: [],//小程序appid
            value: '',
            formData: {},
            tableData: [{}],		//表格数据
            dialogForm: false,
            title: '',
            Benefits: [],
            row: '',
            Member_Type_SerialNumber: '',
            MemberBenefits: [],
            loading: false,
            dialogVisible: false,
            formLabelWidth: '120px'
        }
    },
    mounted() {
        this.form.Open_ID = sessionStorage.getItem("Open_ID")
        this.getData(Article_SerialNumber)
        this.getList(this.form)
    },
    methods: {
        onSerach() {				//查询方法
            this.getList(this.form)
        },
        addContract() {
            console.log("跳转")
        },
        getList(data) {     //换页方法
            let _this = this
            $.ajax({
                type: 'POST',
                url: DomainName +'/getMemberInfoAction?token=' + $.cookie("token"),
                data,
                success: function (Result) {
                    _this.tableData = Result.tableData;
                    _this.total = parseInt(Result.limit)
                    console.log(_this.tableData)
                },
                complete: function (XMLHttpRequest) {
                    if (XMLHttpRequest.getResponseHeader("REDIRECT") == "REDIRECT") {
                        window.parent.document.location.href = "../../../../" + XMLHttpRequest.getResponseHeader("Contentpath");
                    }
                },
                dataType: "json"
            });
        },
    },
})